import store from '@/store'
export const tableOption = {
  "border": true,
  "index": true,
  "dateDefault": true,
  "viewBtn":true,
  "editBtn":false,
  "delBtn":false,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  selection: true,
  height: 450,
  //selectable: row => row.submitStatus == '0',
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      "hide": true,
      "display": false
    },	  {
      "type": "input",
      "label": "线路编码",
      "prop": "lineCode",
      "hide": true,
      "display": false
    },	  {
      "type": "input",
      "label": "车站编码",
      "prop": "stationCode",
      "hide": true,
      "display": false
    },	  {
      "type": "select",
      "label": "申请人",
      "prop": "applyPersonName",
      search: true,
      component: 'user-select',
      params: {
        userCodeKey: 'applyPersonCode',
        belongToStation: true
      },
      rules: [{
        required: true,
        message: '请选择申请人'
      }]
    },	  {
      "type": "input",
      "label": "申请人工号",
      "prop": "applyPersonCode",
      placeholder: ' ',
      disabled: true
    },    {
      "type": "number",
      "label": "申请数量",
      "prop": "applyCount",
      rules: [{
        required: true,
        message: '请输入申请数量',
        trigger: 'burl'
      }]
    },
    {
      "type": "select",
      "label": "状态",
      "prop": "submitStatus",
      dicData:[{
        "label":"未提交",
        "value":"0"
      },{
        "label":"已提交",
        "value":"1"
      }],
      search:true,
      searchValue: '0',
      addDisplay:false,
      editDisplay:false
    },
      {
      "type": "datetime",
      "label": "申请时间",
      "prop": "applyTime",
      "format": 'yyyy-MM-dd HH:mm:ss',
      "valueFormat": 'yyyy-MM-dd HH:mm:ss',
      width: 150,
      rules: [{
        required: true,
        message: '请选择申请时间'
      }],
      clearable: false
    },
    {
      "type": "date",
      "label": "申请时间",
      "prop": "applyTimeDTO",
      "search": true,
      "format": 'yyyy-MM-dd',
      "valueFormat": 'yyyy-MM-dd',
      "hide":true,
	    showColumn: false,
      display: false
    },
    {
      "type": "textarea",
      "label": "申请原因",
      "prop": "applyReason",
      "span": 24,
      rules: [{
        required: true,
        message: '请选择申请原因'
      }],
    },	  {
      "type": "select",
      "label": "审核状态",
      "prop": "checkStatus",
      "dicUrl": '/admin/dict/type/audit_status',
      "addDisplay": false,
      "editDisplay": false,
      search: true
    },	  {
      "type": "input",
      "label": "审核人员",
      "prop": "checkPersonName",
      "hide": true,
      "addDisplay": false,
      "editDisplay": false
    },	  {
      "type": "input",
      "label": "审核时间",
      "prop": "checkTime",
      "hide": true,
      "addDisplay": false,
      "editDisplay": false
    },	  {
      "type": "input",
      "label": "备注",
      "prop": "remark",
      "hide": true,
      addDisplay: false,
      editDisplay: false
    },    {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      "hide": true,
      "display": false
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      "hide": true,
      "display": false
    },	  {
      "type": "input",
      "label": "创建人名称",
      "prop": "creatorName",
      "hide": true,
      "display": false
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      "hide": true,
      "display": false
    } ]
}
